#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <termios.h>
#include <unistd.h>

#define FIELDSIZE	3
#define CELLSIZEX	10
#define CELLSIZEY	5

#define SYDIV2		(CELLSIZEY / 2 + 1)
#define SXDIV2		(CELLSIZEX / 2 + 1)

enum tPosSign {NONE, CROSS, CRISS} position;

struct board {
	int cell[FIELDSIZE][FIELDSIZE];
} gboard;

void InitBoard(struct board *);
void PrintBoard(struct board);
void PrintChat(void);
int IsEnd(void);
